﻿using System.Web;
using System.Web.Optimization;

namespace SanQiOther
{
    public class BundleConfig
    {

        public static void RegisterBundles(BundleCollection bundles) 
        {
            BundleTable.EnableOptimizations = false;

            bundles.Add(new ScriptBundle("~/bundles/jquery").Include(
                        "~/Scripts/jquery-2.2.4.min.js"));

            bundles.Add(new ScriptBundle("~/bundles/jqueryval").Include(
                        "~/Scripts/jquery.validate.min.js"
                        , "~/Scripts/jquery.validate.unobtrusive.min.js"));

            // 使用要用于开发和学习的 Modernizr 的开发版本。然后，当你做好
            // ready for production, use the build tool at https://modernizr.com to pick only the tests you need.
            bundles.Add(new ScriptBundle("~/bundles/modernizr").Include(
                        "~/Scripts/modernizr-*"));

            bundles.Add(new ScriptBundle("~/bundles/bootstrap").Include(
                      "~/Scripts/bootstrap.min.js"
                      //,"~/Scripts/respond.js"
                      ));

            bundles.Add(new StyleBundle("~/bundles/bootstrapcss").Include(
                      "~/Content/bootstrap.min.css"
                      , "~/Content/font-awesome/css/font-awesome.min.css"
                      , "~/Content/ionicons/css/ionicons.min.css"
                      ));

            bundles.Add(new StyleBundle("~/bundles/adminltecss").Include(
                      "~/Content/adminlte/AdminLTE.min.css",
                      "~/Content/adminlte/skins/skin-blue.min.css"));
            bundles.Add(new ScriptBundle("~/bundles/adminlte").Include(
                      "~/Scripts/adminlte/app.min.js"
                      ));

            // Plugins

            //Bootstrap notify
            bundles.Add(new ScriptBundle("~/bundles/bootstrap-notify").Include(
                        "~/Content/plugins/bootstrap-notify/bootstrap-notify.min.js"));

            //DataTable
            bundles.Add(new ScriptBundle("~/bundles/datatablesjq").Include(
                        "~/Content/plugins/datatables/jquery.dataTables.min.js"));
            bundles.Add(new ScriptBundle("~/bundles/datatablesbs").Include(
                        "~/Content/plugins/datatables/dataTables.bootstrap.min.js"));
            bundles.Add(new StyleBundle("~/bundles/datatables").Include(
                        "~/Content/plugins/datatables/dataTables.bootstrap.css"));

            //iCheck
            bundles.Add(new ScriptBundle("~/bundles/iCheck").Include(
                        "~/Content/plugins/iCheck/icheck.min.js"));
            bundles.Add(new StyleBundle("~/bundles/iCheckcss").Include(
                        "~/Content/plugins/iCheck/square/blue.css"));

            //echarts
            bundles.Add(new ScriptBundle("~/bundles/echarts").Include(
                        "~/Content/plugins/echarts/echarts-all.js"));

            //zTree
            bundles.Add(new ScriptBundle("~/bundles/zTree").Include(
                        "~/Content/plugins/zTree/js/jquery.ztree.core.min.js"));
            bundles.Add(new StyleBundle("~/bundles/zTreecss").Include(
                        "~/Content/plugins/zTree/css/zTreeStyle/zTreeStyle.css"));

            //ueditor
            bundles.Add(new ScriptBundle("~/bundles/ueditor").Include(
                        "~/Content/plugins/ueditor/ueditor.config.js"
                        , "~/Content/plugins/ueditor/ueditor.all.min.js"
                        , "~/Content/plugins/ueditor/lang/zh-cn/zh-cn.js"
                        ));

            //bootstrap-fileinput
            bundles.Add(new ScriptBundle("~/bundles/fileinput").Include(
                        "~/Content/plugins/bootstrap-fileinput/js/plugins/sortable.min.js"
                        , "~/Content/plugins/bootstrap-fileinput/js/plugins/purify.min.js"
                        , "~/Content/plugins/bootstrap-fileinput/js/plugins/canvas-to-blob.min.js"
                        , "~/Content/plugins/bootstrap-fileinput/js/fileinput.min.js"
                        , "~/Content/plugins/bootstrap-fileinput/js/locales/zh.js"
                        ));
            bundles.Add(new StyleBundle("~/bundles/fileinputcss").Include(
                        "~/Content/plugins/bootstrap-fileinput/css/fileinput.min.css"));
        }
    }
}